<div class="searchresults">
    <div class="yescontenttoprow">
        <p class="results"><?php echo $count; ?> 
            results</p>
        <!--<div class="color-main" id="paginationalone">
<a href="javascript:;"><img border="0" class="arrowunavailable" alt="" src="<?php echo FRONT_SITE_URL ?>www/images/images1/leftarrow.png"></a>

<span class="paginationon">1</span>
<a page-index="2" href="javascript:;">2</a>
...
<a page-index="13" href="javascript:;">13</a>

<a page-index="2" href="javascript:;"><img border="0" alt="" src="<?php echo FRONT_SITE_URL ?>www/images/images1/rightarrow.png"></a>
</div>-->

        <div class="color-main" id="paginationalone">
            <?php $this->widget('CLinkPager', array('header' => '', 'pages' => $pages, "cssFile" => false)); ?>
        </div>

        <div class="searchsort">
            <select name="searchsortby" id="searchsortby"><option value="MyDefault" selected="selected">My Default</option>
                <option value="1">Distance</option>
                <option value="2">Activity</option>
                <option value="3">New Members</option>
                <option value="4">Members Online</option>
            </select>
            <p class="viewbylist lightgraytext">
                Sort by:</p>
        </div>
        <div class="toprowfloatright">
            <div class="listpagelinksarea">
                <p class="viewbylist lightgraytext">
                    View by:</p>
                <div class="listpagelinksarea3 listpagelinksarea3on">
                    <p>
                        <a id="DisplayGalleryLink" href="javascript:;">Gallery</a></p>
                </div>
                <div class="listpagelinksarea1  listpagelinksarea1off">
                    <p>
                        <a id="DisplayListLink" href="javascript:;">List</a></p>
                </div>
            </div>
        </div>
        <p class="clearfix">
            &nbsp;</p>
    </div>
    <div class="yescontentmiddlerow">
        <div class="searchresultsgalleryview">
            <?php
            foreach ($models as $model):
            // dump($model); die;
            ?>

            <div class="profilerepeatgallery ">
                <div class="staroverlayplace">
                    <div class="staroverlay">
                        <a style="display:none;" fav-member-id="0BDFF703281DBD39" title="Save as Favorite" href="javascript:;">
                            <img border="0" src="<?php echo FRONT_SITE_URL ?>www/images/images1/favoriteoverlay.png"></a>
                        <a style="" unfav-member-id="0BDFF703281DBD39" title="Saved as Favorite" href="javascript:;">
                            <img border="0" src="<?php echo FRONT_SITE_URL ?>www/images/images1/favoritedoverlay.png"></a>
                    </div>
                </div>
                <a href="<?php echo FRONT_SITE_URL;?>user/profile/viewprofile?profile=<?php echo $model->user_id; ?>">
                      <?php if ($model->userPhoto->link_img != null) { ?>
                                <img border="0" class="userpiclarge" src="<?php echo FRONT_SITE_URL ?>www/uploads/photos/thumbs/<?php echo 'thumb_' . $model->userPhoto->link_img; ?>">
                            <?php } ?>
                            <?php if ($model->userPhoto->link_img == null) { ?>
                                <img border="0" class="userpiclarge" src="<?php echo FRONT_SITE_URL ?>www/images/images1/noPhoto-1t.gif">
                            <?php } ?>
                </a>
                <div class="galleryviewusername">
                    <img border="0" title="Not Online" src="<?php echo FRONT_SITE_URL ?>www/images/images1/offlineicon.png"> 
                    <p>
                        <a href="<?php echo FRONT_SITE_URL;?>user/profile/viewprofile?profile=<?php echo $model->user_id; ?>" ><?php echo $model->username; ?></a></p>
                </div>
            </div>


            <?php endforeach; ?>


            <p class="clearfix">
                &nbsp;</p>
        </div>
    </div>
    <div class="bottomrow">
        <!--<div class="color-main" id="paginationsearch">
    <div id="paginationsearchleft">
            <a title="Previous" class="button_style buttonunavailable" href="javascript:;">Previous</a>
    </div>
    <div id="paginationsearchcenter">
            <a href="javascript:;">
                <img border="0" class="arrowunavailable" alt="" src="http://pmi.peoplemedia.com/vc/1589531/21/images/external/leftarrow.png"></a>
    <span class="paginationon">1</span>
    <a page-index="2" href="javascript:;">2</a>
    ...
    <a page-index="13" href="javascript:;">13</a>
            <a page-index="2" href="javascript:;">
                <img border="0" alt="" src="http://pmi.peoplemedia.com/vc/1589531/21/images/external/rightarrow.png"></a>
    </div>
    <div id="paginationsearchright">
            <a title="Next" class="button_style" page-index="2" href="javascript:;">
                Next</a>
    </div>
</div>-->





    </div>
</div>